@extends('layouts.default')
@section('title','用户登录')
@section('content')
  <div class="offset-md-2 col-md-8">
      <div class="card">
          <div class="card-header text-center">
            <h5>登录</h5>
          </div>
        <div class="card-body">
          @include('shared.errors')
          <form method="POST" action="{{route('login')}}">
            {{ csrf_field() }}
            <div class="form-group py-2">
              <label for="email">邮箱:</label>
              <input id="email" type="email" name="email" class="form-control" value="{{old('email')}}">
            </div>

            <div class="form-group py-2">
              <label for="password">密码(
                <a href="{{route('password.request')}}">忘记密码?</a>
                ):</label>
              <input id="password" type="password" name="password" class="form-control" value="{{old('password')}}">
            </div>

            <div class="form-group py-2">
              <div class="form-check">
                <input id="rememberMe" type="checkbox" name="remember" class="form-check-input" >
                <label for="rememberMe">记住我:</label>
              </div>
            </div>

            <div class="form-group py-2">
              <button type="submit" class="btn btn-primary">登录</button>
            </div>
          </form>
          <hr />
          <p>还没有账号?<a href="{{route('signup')}}">现在注册</a></p>
        </div>
      </div>
  </div>
@stop
